<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        body{
            background: rgb(255, 236, 212);
        }
        .box{
            width: 640px;
            height: 500px;
            margin: auto;
            background: url(./img/main2.png)no-repeat;
            position: relative;

        }
        .left{
            width: 123px;
            height: 196px;
            background: url(./img/num.png)no-repeat;
            background-position: 0px -425px;
            position: absolute;
            top: 58px;
            left:65px;
            overflow: hidden;
        }
        .center{
            width: 123px;
            height: 196px;
            background: url(./img/num.png)no-repeat;
            background-position: 0 -425px ;
            position: absolute;
            top: 58px;
            left: 217px;
            overflow: hidden;
        }
        .right{
            width: 123px;
            height: 196px;
            position: absolute;
            top: 58px;
            right: 148px;
            background: url(./img/num.png)no-repeat;
            background-position: 0 -425px ;
            overflow: hidden;
        }
        button{
            position: absolute;
            display: block;
            width: 300px;
            height: 85px;
            bottom: 125px;
            left: 123px;
            opacity: 0;
            border: none;

        }
        
    </style>
</head>
<body>
    <div class="box">
        <div class="left"></div>
        <div class="center"></div>
        <div class="right"></div>
        <button></button>
    </div>
    <script src="./jquery-3.6.0.js"></script>
    <script>
        var a=-100
        $('button').click(function(){
            setInterval(function(){

                 $('.img').css('backgroundPosition',-a)
            })
           
        })
    </script>
</body>
</html>